<?php
class EventHandler
{
	private $subject;
	private $funcName;

	function EventHandler($subject, $funcName)
	{
		$this->subject = $subject;
		$this->funcName = $funcName;
	}
	function call($sender, $args)
	{
		return call_user_func(array($this->subject, $this->funcName), $sender, $args);
	}
}
?>
